diff --git a/plugin/Gallery/Gallery.php b/plugin/Gallery/Gallery.php index bf72fa5dd..cc388b228 100644 --- a/plugin/Gallery/Gallery.php +++ b/plugin/Gallery/Gallery.php @@ -1,142 +1,143 @@ getDataObject(); // preload image $js = ""; $css = ''; if(!empty($obj->playVideoOnFullscreenOnIframe)){ if(canFullScreen()){ $css .= ''; $css .= ''; $css .= ''; } $js .= ''; }else if(!empty($obj->playVideoOnFullscreen) && canFullScreen() ){ $css .= ''; } if(!empty($obj->playVideoOnFullscreen)){ $css .= ''; } return $js.$css; } public function getEmptyDataObject() { global $global; $obj = new stdClass(); $obj->hidePrivateVideos = false; $obj->BigVideo = true; $obj->useSuggestedVideosAsCarouselInBigVideo = true; $obj->GifOnBigVideo = true; $obj->Description = false; $obj->CategoryDescription = false; $obj->Suggested = true; $obj->SuggestedCustomTitle = ""; $obj->SuggestedRowCount = 12; $obj->Trending = true; $obj->TrendingCustomTitle = ""; $obj->TrendingRowCount = 12; $obj->DateAdded = true; $obj->DateAddedCustomTitle = ""; $obj->DateAddedRowCount = 12; $obj->MostWatched = true; $obj->MostWatchedCustomTitle = ""; $obj->MostWatchedRowCount = 12; $obj->MostPopular = true; $obj->MostPopularCustomTitle = ""; $obj->MostPopularRowCount = 12; $obj->SortByName = false; $obj->SortByNameCustomTitle = ""; $obj->SortByNameRowCount = 12; $obj->SubscribedChannels = true; $obj->SubscribedChannelsRowCount = 12; $obj->Categories = true; $obj->CategoriesCustomTitle = ""; $obj->CategoriesRowCount = 12; $obj->sortReverseable = false; $obj->SubCategorys = false; $obj->showTags = true; $obj->showCategoryTag = true; + $obj->showCategoryLiveRow = false; $obj->searchOnChannels = true; $obj->searchOnChannelsRowCount = 12; $obj->playVideoOnFullscreen = false; $obj->playVideoOnFullscreenOnIframe = false; $obj->playVideoOnBrowserFullscreen = false; $obj->filterUserChannel = false; $obj->screenColsLarge = 6; $obj->screenColsMedium = 3; $obj->screenColsSmall = 2; $obj->screenColsXSmall = 1; return $obj; } public function getHelp(){ if(User::isAdmin()){ return "
".__('Option-name')."".__('Default')."".__('Description')."
BigVideo".__('checked')."".__('Create a big preview with a direct description on top')."
DateAdded,MostPopular,MostWatched,SortByName".__('checked').",".__('checked').",".__('checked').",".__('unchecked')."".__('Metacategories')."
SubCategorys".__('unchecked')." ".__('Enable a view for subcategories on top')."
Description".__('unchecked')."".__('Enable a small button for show the description')."
"; } return ""; } public function getFirstPage(){ global $global; if(!AVideoPlugin::isEnabledByName("YouPHPFlix2") && !AVideoPlugin::isEnabledByName("CombineSites")){ return $global['systemRootPath'].'plugin/Gallery/view/modeGallery.php'; } } public function getFooterCode() { $obj = $this->getDataObject(); global $global; $js = ''; if(!empty($obj->playVideoOnFullscreenOnIframe)){ $js = ''; $js .= ''; }else if(!empty($obj->playVideoOnFullscreen)){ $js = ''; $js .= ''; $js .= ''; $js .= ''; } if(!empty($obj->playVideoOnBrowserFullscreen)){ $js = ''; } return $js; } } diff --git a/plugin/Gallery/view/modeGalleryCategoryLive.php b/plugin/Gallery/view/modeGalleryCategoryLive.php index fe319a0f3..07cd7ffa8 100644 --- a/plugin/Gallery/view/modeGalleryCategoryLive.php +++ b/plugin/Gallery/view/modeGalleryCategoryLive.php @@ -1,31 +1,37 @@ showCategoryLiveRow)){ + return false; +} + $videosL = $videosLL = $videos = array(); if (AVideoPlugin::isEnabledByName("Live")) { $videosL = Live::getAllVideos(); } if (AVideoPlugin::isEnabledByName("LiveLinks")) { $videosLL = LiveLinks::getAllVideos(); } $videos = array_merge($videosL, $videosLL); if (!empty($videos)) { $contentSearchFound = true; ?>